package com.feeyo.prophet.pojo.action;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serial;
import java.io.Serializable;

public class DateRange implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @JSONField(name = "startDate")
    private String startDate;
    @JSONField(name = "endDate")
    private String endDate;

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        final StringBuilder str = new StringBuilder("{");
        str.append("\"startDate\":\"")
                .append(startDate).append('\"');

        str.append(",\"endDate\":\"")
                .append(endDate).append('\"');

        str.append('}');
        return str.toString();
    }
}
